<%@page import="com.lzl.entity.Goods"%>
<%@page import="java.util.List"%>
<%@page import="com.lzl.dao.Goodsdaoimpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<%
if(session.getAttribute("username")==null)
	response.sendRedirect("login.jsp");
	Goodsdaoimpl gd = new Goodsdaoimpl();
	try {
		List<Goods> gList = gd.find();
		request.setAttribute("glist",gList);
		request.getRequestDispatcher("showgoods.jsp").forward(request,response);
	} catch(Exception e) {
		e.printStackTrace();
	}
%>
<table border="1" width="100%">
<tr><td width="20%" Height="30px"><a href="goodctrl.jsp">商品管理</a></td></tr>
<tr><td width="20%" Height="30px"><a href="insertgoods.jsp">商品添加</a></td></tr>
<tr><td width="20%" Height="30px"><a href="updatepwd.jsp">修改密码</a></td></tr>
<tr><td width="20%" Height="30px"><a href="leave.jsp">系统退出</a></td></tr>
</table>